package me.zk.practice1;
import cn.hutool.json.JSONUtil;
import me.zk.practice1.ProposedDiagnosesResDTO;
import java.util.ArrayList;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: zhang kai
 * @Date: 2023/03/15
 * @Description:
 */
@Getter
@Setter
@ToString
public class ConsultOrderDTO implements Serializable {

    private static final long serialVersionUID = 2611874046806466299L;

    /**
     * 问诊单号
     */
    private String diagnoseId;
    /**
     * 患者id
     */
    private String patientId;

    /**
     * 接诊时间 医生接诊时间
     */
    private Date consultStartTime;

    /**
     * 咨询摘要
     */
    private String roundup;

    /**
     * 总结建议
     */
    private String summary;

    /**
     * orgCode
     */
    private String orgCode;
    /**
     * 拟诊疾病id
     */
    private List<ProposedDiagnosesResDTO> sumIds;


    public static void main(String[] args) {
        ConsultOrderDTO dto = new ConsultOrderDTO();
        dto.setDiagnoseId("244567165242169344");
        dto.setPatientId("244567191011973121");
        dto.setConsultStartTime(new Date());
        dto.setRoundup("咨询摘要");
        dto.setSummary("总结建议");
        dto.setOrgCode("orgCode");
        List<ProposedDiagnosesResDTO> list = new ArrayList<>();
        ProposedDiagnosesResDTO p = new ProposedDiagnosesResDTO();
        p.setSumId("sumId");
        p.setSumName("sumName");
        list.add(p);
        dto.setSumIds(list);
        System.out.println(JSONUtil.toJsonStr(dto));

    }
}

